// share.js
export default {
	data() {
		return {
      share: {
        title:"",
        path: "/pages/index/index", // 要分享的页面路径
        imageUrl: "", // 图片
      },
    };
	},
	// 分享给朋友
	onShareAppMessage(res) {
		return {
			title: this.share.title,
			path: this.share.path,
			imageUrl: this.share.imageUrl,
		}
	},
	// 分享到朋友圈
	onShareTimeline(res) {
		return {
			title: this.share.title,
			path: this.share.path,
			imageUrl: this.share.imageUrl,
			query: 'pageFrom=pyq',
		}
	},
}
